package com.cbg.score.controller;


import com.cbg.base.utils.Result;
import com.cbg.score.entity.ScScore;
import com.cbg.score.service.IScScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yangkexiong
 * @since 2018-12-22
 */
@RestController
@RequestMapping("/score/chanal")
public class ScChanalController {
    @Autowired
    private IScScoreService scScoreService;

    //根据id查询渠道信息
    @GetMapping("/{id}")
    public Result<ScScore> getScScore(@PathVariable String id){
        Result<ScScore> scScore = getScScore(id);
        return Result.ok();
    }

}
